<?php

class IndexController extends Phoenix_Controller_Action
{
	function init()
	{		
		$this->view->headTitle('Strona glowna');
		$this->setMenu();
		
		// wpisano w rejestr w pliku Application.php        
		$layout_name = Zend_Registry::get('layout_name');        
		$this->view->addBasePath('./layout/' . $layout_name);

      		
		
	}
	
        public function indexAction()
        {   	
            $response = $this->getResponse();
            $response->insert('sidebar', $this->view->render('sidebar.phtml'));    	
    	    $response->insert('header', $this->view->render('header.phtml'));
    	
            $this->render();
        }

        public function deniedAction()
        {
            $this->render();
        }
}

